package com.anche.cywebnew.Service.auditManager.impl;

import com.anche.cywebnew.DAO.auditManager.NasLogMapper;
import com.anche.cywebnew.Pojo.auditManager.NasLog;
import com.anche.cywebnew.Service.auditManager.NasLogService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NasLogServiceImpl implements NasLogService {

    @Autowired
    private NasLogMapper nasLogMapper;

    @Override
    public int insertNas(NasLog nasLog) {
        return nasLogMapper.insertNas(nasLog);
    }

    @Override
    public Page<NasLog> getNasLogPager(Integer page, Integer limit, NasLog nasLog) {
        Page<NasLog> page1 = PageHelper.startPage(page, limit);
        nasLogMapper.selectNasLogList(nasLog);
        return page1;
    }
}
